package pers.ree.demo.concurrent;

public class ThreadExceptionDemo {

    public static void main(String[] args) {
        System.out.println("234");
        try {
            Thread t = new Thread(()->{
                String s = null;
                s.toString();
            });
            t.start();
        } catch (Exception e) {
            System.out.println("123");
        }
        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("456");
    }
}
